package main

import (
	"fmt"
)

func main() {
	keyStore := NewKeyStore("./wallet/", StandardScryptN, StandardScryptP)

	//account, err := keyStore.NewAccount("123456")
	//if err != nil {
	//	utils.Fatalf("Failed to create account: %v", err)
	//}
	//fmt.Printf("\nYour new key was generated\n\n")
	//fmt.Printf("Public address of the key:   %s\n", account.Address.Hex())
	//fmt.Printf("Path of the secret key file: %s\n\n", account.URL.Path)

	wallets := keyStore.wallets
	for i := 0; i < len(wallets); i++ {
		fmt.Printf("Public address of the key:   %s\n", wallets[i].account.Address.Hex())
		fmt.Printf("Path of the secret key file: %s\n\n", wallets[i].account.URL.Path)
	}

}
